package com.example.lab.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Admin)表实体类
 *
 * @author makejava
 * @since 2022-04-22 22:44:50
 */
@SuppressWarnings("serial")
@TableName("admin")
public class Admin extends Model<Admin> {
    @TableId(value = "Aid" ,type = IdType.AUTO)
    private Integer aid;
    //管理员姓名
    private String aname;
    //管理员账号
    private String auser;
    //管理员密码
    private String apassword;
    //管理员邮箱
    private String aemail;
    //管理员手机
    private String atel;
    //管理员性别
    private Integer agender;


    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAuser() {
        return auser;
    }

    public void setAuser(String auser) {
        this.auser = auser;
    }

    public String getApassword() {
        return apassword;
    }

    public void setApassword(String apassword) {
        this.apassword = apassword;
    }

    public String getAemail() {
        return aemail;
    }

    public void setAemail(String aemail) {
        this.aemail = aemail;
    }

    public String getAtel() {
        return atel;
    }

    public void setAtel(String atel) {
        this.atel = atel;
    }

    public Integer getAgender() {
        return agender;
    }

    public void setAgender(Integer agender) {
        this.agender = agender;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.aid;
    }
    }

